﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace WindowsFormsApplication5
{

    public class Brick: Abstractbarrier
    {
        private Rectangle brick;
       
     
        public Rectangle Rect
        {
            get { return brick; }
            set { brick = value; }
        }

        public override void PrintLocation()
        {
            Str = " ";
            Str = "Position X:" + Convert.ToString(Rect.Location.X) + "  Y:" + Convert.ToString(Rect.Location.Y);
        }

        public override void PrintParameters()
        {
            Str = " ";
            Str = "Parameters Width:" + Convert.ToString(Rect.Width) + "  Height:" + Convert.ToString(Rect.Height);
        }

        public Brick(int x, int y)
        {
            data = new Data();
            brick = new Rectangle();
            brick.Size = new Size(data.brick_width, data.brick_height);
            brick.Location = new Point(x, y);
        }
    }
}
